#include<iostream>
#define PI 3.14
using namespace std;
class Cball{
	private:
	    double radius;
	public:
		double density=7800;
		Cball(double r):radius(r){};
		~Cball(){cout<<"析构函数被调用"<<endl;}
		double area(){
			return 4*PI*radius*radius;
		}
		double Volume(){
			return (4/3)*PI*radius*radius*radius;
		}
		double Quality(){
			return density*(4/3)*PI*radius*radius*radius;
		}	
};
int main(){
	double n;
	cout<<"please radius of the ball"<<endl;
	cin>>n;
	Cball ball(n);
	cout<<"area = "<<ball.area()<<"\n"<<"Volume = "<<ball.Volume()<<"\n"<<"Quality = "<<ball.Quality()<<endl;
	return 0;
}